<div class="row-fluid" style="border-bottom:1px dashed #ebebeb; margin-bottom:10px;">
	<!--<div class="span2">
		<a class="img_pro" href="<?php //echo Yii::app()->createUrl('/articles/view/'.$data->alias);?>">
			<?php
			
			// if($data->image != null){
			?>
			
				<img src="<?php //echo Yii::app()->baseUrl;?>/wwwroot/upload_files/articles/<?php echo $data->image;?>">
			
			<?php
			// }
			?>
			
		</a>
	</div>-->
	<div class="span12">
		<h4>
			<a class="img_pro" href="<?php echo Yii::app()->createUrl('/articles/view/'.$data->alias);?>">
				<span><?php echo CHtml::encode($data->title)?> </span>
			</a>
		</h4>
		<i><?php echo "Created by ".$data->users->username ." in ".  $data->category->name ." category - ". ViewHelper::humanTiming(strtotime($data->created)). " ago";?></i><br/>
		<?php if ($data->verified_count > 9) { ?>
			<span>Article is verified!</span>
		<?php } else {?>
			<span>Article haven't verified yet!</span>
		<?php } ?> <br/><br/>
		<p>
			<?php echo $data->limit_text(strip_tags($data->content), 200);?>
		</p>
		<div style="float:right">
			<?php
			//if(currentUser() != false && $data->user_id == currentUser()->id){
			if(currentUser() != false){
				echo CHtml::link('Update',Yii::app()->createUrl('articles/update',array('id'=>$data->id)), array('class'=>'btn btn-success btn-mini'));
			}
			
			if(currentUser() && $data->user_id == currentUser()->id){
				echo CHtml::link('Delete',"javascript:void(0)", array("submit"=>array('delete', 'id'=>$data->id), 
					'class'=>'btn btn-danger btn-mini',
					'confirm' => 'Are you sure?'));
			}
			?>
		</div>
		<?php
			
			$this->widget('widgets.like.Like', array(
				'objectId'=>$data->id,
				'actionLike'=> Yii::app()->createUrl('like/liked/liked'),
				'actionUnlike'=> Yii::app()->createUrl('like/liked/like'),
				'classUnlike'=>'icon-thumbs-up',
				'classLike'=>'icon-thumbs-down',
				
			));

		?>
		
		<?php
			
			$this->widget('widgets.follow.Follow', array(
				'objectId'=>$data->id,
				'actionLike'=> Yii::app()->createUrl('follow/followed/followed'),
				'actionUnlike'=> Yii::app()->createUrl('follow/followed/follow'),
				'classUnlike'=>'icon-plus',
				'classLike'=>'icon-minus',
				
			));

		?>
		<?php
		if(currentUser() && $data->user_id != currentUser()->id){
			$this->widget('widgets.flag.Flag', array(
				'objectId'=>$data->id,
				'actionLike'=> Yii::app()->createUrl('flag/flaged/flaged'),
				'actionUnlike'=> Yii::app()->createUrl('flag/flaged/flag'),
				'classUnlike'=>'icon-minus-sign',
				'classLike'=>'icon-flag',
				
			));
		}
		?>
		<?php
		if(currentUser() && $data->user_id != currentUser()->id){
			$this->widget('widgets.verified.Verified', array(
				'objectId'=>$data->id,
				'actionVerified'=> Yii::app()->createUrl('verified/verified/verified'),
				'actionUnverified'=> Yii::app()->createUrl('verified/verified/unverified'),
				'classUnverified'=>'icon-ok',
				'classVerified'=>'icon-remove',
				
			));
		}
		?>
		<p class="spec"><a href="<?php echo Yii::app()->createUrl('/articles/view/'.$data->alias);?>" class="pin_to right">Read more</a></p>
		
	</div>
</div>